var formValidator = function() {
	var rules = {
		title : {
			maxlength : 32
		},
		content : {
			required : true,
			maxlength : 250
		}
	};

	var messages = {
		title : {
			maxlength : "标题不能超过32个字"
		}, 
		content : {
			required : "内容不能为空",
			maxlength : "内容不能超过250个字",
		}
	};

	return {
		init : function() {
			validator(rules, messages).init();
		}
	};
}();
